<?php
  require_once('db_connection.php');

  $query = "INSERT INTO `users`
  (`name`,`email`,`password`,`added_date`,`status`)
   VALUES
  ('Zeev Suraski','zeev@zend.com','1q12q1',NOW(),'0') ";

  mysql_query($query) or die(mysql_error());

  $id = mysql_insert_id();// return auto_incremented (primary key)

  echo "record inserted on Id : $id \n\n";
